https://github.com/anisov/ya-algorithms